package joc.transformer;

import javassist.CtClass;
import javassist.CtMethod;

public abstract class DeclaredMethodTransformer extends ClassTransformer {
	public DeclaredMethodTransformer(Transformer transformer) {
		super(transformer);
	}

	@Override
	public final void transform(CtClass clazz) throws Exception {
		for (CtMethod method : clazz.getDeclaredMethods()) {
			transform(clazz, method);
		}
	}
	
	public abstract void transform(CtClass clazz, CtMethod method) throws Exception;
}
